import Home from "../pages/Home/Home";
import Quan from "../pages/Quan/Quan";
import Daifu from "../pages/Daifu/Daifu";
import { createBrowserRouter } from "react-router-dom";


import Daifa from "../pages/Daifa/Daifa";
import Daishou from "../pages/Daishou/Daishou";

export const routerlist=[
   
    {
        path:"/quan",
        element:<Quan/>,
        meta:{title:'全部订单'}
    },
    {
        path:"/daifu",
        element:<Daifu/>,
        meta:{title:'待付款'}
    },
    {
        path:"/daifa",
        element:<Daifa/>,
        meta:{title:'待发货'}
    },
    {
        path:"/daishou",
        element:<Daishou/>,
        meta:{title:'待收货'}
    },
    
    
]

const router=createBrowserRouter([
    {
        path:"/",
        element:<Home/>,
        children:routerlist
    },
   
    
])

export default router;